{% extends "bl_rb/admin/admin_base.html" %}

{% block title %}Index of all blurbs{% endblock %}

{% block article %}

    <h1>Index of all blurbs</h1>
    <p><a href="{% url bl_rb_admin_create %}">New blurb</a></p>
	<h2>Existing blurbs</h2>
    {% if blurbs %}
        {% for blurb in blurbs %}
            <div>
            	<a href="{% url bl_rb_admin_edit blurb.slug %}">{{ blurb.slug }}</a>
				<form action="{% url bl_rb_admin_delete %}" method="POST">
					<input type="hidden" name="slug" value="{{ blurb.slug }}">
			        <input type="submit" value="Delete">
			    </form>
			</div>
        {% endfor %}
    {% else %}
       <p>No blurbs yet.</p>
    {% endif %}
{% endblock %}